# -*- coding: utf-8 -*-
from dophon import blue_print
from dophon.annotation import *
from flask import url_for
from flask import render_template
from flask import send_from_directory
app = blue_print('FrameworkStaticRoute', __name__,static_folder='F:/person/dophon/test3/static')
@RequestMapping('/<file_name>',['get','post'])
def __6fa85fc65ed11e9a86cd89c673b2e(file_name):
	"""
	static file route in /<file_name>
	:param file_name: static file name
	:return static file blob
	"""
	return render_template(f'/{file_name}') if file_name.endswith('.html') else send_from_directory('F:/person/dophon/test3/static',f'{file_name}',as_attachment=True)
@RequestMapping('/css/<file_name>',['get','post'])
def css_css_6fa8873665ed11e9a649d89c673b2e(file_name):
	"""
	static file route in /css/<file_name>
	:param file_name: static file name
	:return static file blob
	"""
	return render_template(f'/css/{file_name}') if file_name.endswith('.html') else send_from_directory('F:/person/dophon/test3/static/css',f'{file_name}',as_attachment=True)
@RequestMapping('/fonts/<file_name>',['get','post'])
def fonts_fonts_6fa8873765ed11e9b82d89c673b2e(file_name):
	"""
	static file route in /fonts/<file_name>
	:param file_name: static file name
	:return static file blob
	"""
	return render_template(f'/fonts/{file_name}') if file_name.endswith('.html') else send_from_directory('F:/person/dophon/test3/static/fonts',f'{file_name}',as_attachment=True)
@RequestMapping('/img/<file_name>',['get','post'])
def img_img_6fa8873865ed11e9821d89c673b2e(file_name):
	"""
	static file route in /img/<file_name>
	:param file_name: static file name
	:return static file blob
	"""
	return render_template(f'/img/{file_name}') if file_name.endswith('.html') else send_from_directory('F:/person/dophon/test3/static/img',f'{file_name}',as_attachment=True)
@RequestMapping('/js/<file_name>',['get','post'])
def js_js_6fa8873965ed11e9b845d89c673b2e(file_name):
	"""
	static file route in /js/<file_name>
	:param file_name: static file name
	:return static file blob
	"""
	return render_template(f'/js/{file_name}') if file_name.endswith('.html') else send_from_directory('F:/person/dophon/test3/static/js',f'{file_name}',as_attachment=True)
